import React, { Component } from 'react'

export default class Hello extends Component {
    
    static getDerivedStateFromProps(nextProps, prevState) {
        
    }

    render() {
        return (
            <div onClick={() => {
                this.setState({
                    visible:!this.state.visible
                })
            }}>
                {
                    this.state.visible?"test":null
                }
            </div>
        )
    }
}
